#include "stdafx.h"
#include "TestApplication.h"
#include "Application.h"
#include "Project.h"
#include "Configration.h"

using namespace PDMS::PDMSFrame;

CPPUNIT_TEST_SUITE_REGISTRATION( TestApplication );


TestApplication::TestApplication()
{
}


TestApplication::~TestApplication()
{
}

void TestApplication::TestInstance()
{
	CPPUNIT_ASSERT( Application::Instance() );
}

void TestApplication::TestActiveProject()
{
	Application app;

//	CPPUNIT_ASSERT( app.ActiveProject() == NULL );

//	Project prj;
//	app.ActiveProject( &prj );
	CPPUNIT_ASSERT( app.ActiveProject() == NULL );

//	app.ActiveProject( NULL );
//	CPPUNIT_ASSERT( app.ActiveProject() == NULL );
}

void TestApplication::TestActiveConfigration()
{
	Application app;
	
//	CPPUNIT_ASSERT( app.ActiveConfigration() == NULL );
	
//	Configration prj;
//	app.ActiveConfigration( &prj );
	
//	CPPUNIT_ASSERT( app.ActiveConfigration() != NULL );
	
//	app.ActiveConfigration( NULL );
//	CPPUNIT_ASSERT( app.ActiveConfigration() == NULL );
}